package com.proposition.commons.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;

/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2018-02-28 9:26
 **/
@TableName("permission")
public class PermissionNew extends Model<PermissionNew> {
	@Override
	protected Serializable pkVal() {
		return this.id;
	}
	private int id;
	private String name;
	@TableField("node_id")
	private String nodeId;
	private String pid;
	private int type;
	private int level;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNodeId() {
		return nodeId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	@Override
	public String toString() {
		return "PermissionNew{" +
				"id=" + id +
				", name='" + name + '\'' +
				", nodeId=" + nodeId +
				", pid=" + pid +
				", type=" + type +
				", level=" + level +
				'}';
	}
}
